<?php
$contents = $this->contents;
$parameters = $this->parameters;
$baseUrl = $this->base_url;
?>

<?php if($parameters['title_enabled']):?>
<dl>
    <dt><?php echo $parameters['title']?></dt>
    <?php foreach ($contents as $content):?>
        <dd><a href="<?php echo $this->getUrl(array('id'=>$content['id']), 'detail', 'content', 'article')?>"><?php echo $content['title'] ?></a></dd>
    <?php endforeach;?>
</dl>
<?php else :?>
<ul class="<?php echo $parameters['css_prefix'] ?>">
    <?php foreach ($contents as $content):?>
        <li><a href="<?php echo $this->getUrl(array('id'=>$content['id']), 'detail', 'content', 'article')?>"><?php echo $content['title'] ?></a></li>
    <?php endforeach ?>
</ul>
<?php endif;?>